/*
 * @Date: 2023-01-22 02:17:37
 * @LastEditors: 恶名扬 2080156129@qq.com
 * @LastEditTime: 2023-01-22 07:31:14
 * @FilePath: \campus-repair-platform\server\schema\manage\feedback.js
 */
/**
 * list_schema  获取意见反馈列表
 * query_schema 根据title查询意见反馈
 */

const joi = require("joi")
const { page, pagesize, f_title: title } = require("../common")

exports.list_schema = {
  query: {
    page,
    pagesize,
    type: joi.string().min(2).max(4).error(new Error("反馈人类型格式有误")),
  },
}

exports.query_schema = {
  query: {
    title,
    page,
    pagesize,
    type: joi.string().min(2).max(4).error(new Error("反馈人类型格式有误")),
  },
}
